package local.bbs.cont.service;

import java.util.List;
import java.util.Map;

import local.bbs.cont.command.BBSCommand;
import local.bbs.cont.dao.BBSListDao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class BBSListService {
	
	@Autowired
	BBSListDao bbsListDao;

	public List<Map<String, Object>> list(BBSCommand bbsCommand) {
		return bbsListDao.list(bbsCommand);
	}
	
	public Map<String, Object> view(BBSCommand bbsCommand) {
		return bbsListDao.view(bbsCommand);
	}
	
}
